package com.monkey.model.comparator;

/**
 * desc:
 * auth: chenxiaobin
 * data: 2018/1/14.
 */
public class MonkeyMySort {
	private int profit;		// 收益 从小到大1，从大到小-1，未选中0
    private int bonus;      // 掘金 从小到大1，从大到小-1，未选中0
    private int generation; // 代数 从小到大1，从大到小-1，未选中0
    private int weight;     // 体重 从小到大1，从大到小-1，未选中0
    private int grow;       // 成长 从小到大1，从大到小-1，未选中0
    private int reproduct;  // 生育 从小到大1，从大到小-1，未选中0
    private int offset;     // 起始
    private int num;        // 数量

    public MonkeyMySort(int profit, int bonus, int generation, int weight, int grow, int reproduct, int offset, int num) {
        this.profit = profit;
        this.bonus = bonus;
        this.generation = generation;
        this.weight = weight;
        this.grow = grow;
        this.reproduct = reproduct;
        this.offset = offset;
        this.num = num;
    }

    public boolean isProfit() {
        return profit != 0;
    }

    public boolean isBonus() {
        return bonus != 0;
    }

    public boolean isGeneration() {
        return generation != 0;
    }

    public boolean isWeight() {
        return weight != 0;
    }
    
    public boolean isGrow() {
        return grow != 0;
    }
    
    public boolean isReproduct() {
        return reproduct != 0;
    }

    public boolean getProfit() {
        return profit == 1;
    }
    
    public boolean getBonus() {
        return bonus == 1;
    }

    public boolean getGeneration() {
        return generation == 1;
    }

    public boolean getWeight() {
        return weight == 1;
    }
    
    public boolean getGrow() {
        return grow == 1;
    }
    
    public boolean getReproduct() {
        return reproduct == 1;
    }

    public int getOffset() {
        return offset;
    }

    public int getNum() {
        return num;
    }
}
